package com.yt.server.common.service;

import java.util.List;

import com.yt.server.api.IScope;
import com.yt.server.common.taglib.PageController;

/**
 * 基础接口模型
 * 创建者：刘晶
 * 创建日期：2011 - 06 - 10
 * 修改者：null
 * 修改日期：null
 * 备注：null
 */
public interface BaseService<T> {
	
	public IScope getScope();

	public void create(T entity) throws Exception;

	public void edit(T entity) throws Exception;

	public void delete(List<Long> entity) throws Exception;

	public T view(T entity) throws Exception;

	public List<?> list(Object entity) throws Exception;

	public PageController<?> pageList(String searchName, int page) throws Exception;
}
